﻿<?xml version="1.0" encoding="utf-8" ?>
<!-- WEB层的基本对像定义 BasePage -->
<objects xmlns='http://www.springframework.net'>
  <!-- 软件信息 -->
  <object id="SoftInformation" type="FastSpring.Base.Support.SoftInformation, FastSpring.Net" singleton="true">
    <property name="SoftName" value="FastSpring.Net"/>
    <property name="SoftNameExt" value=" 预览版"/>
    <property name="SoftVersion" value="V2.02"/>
    <property name="SoftIcp" value="沪ICP备01234567号"/>
    <property name="SoftCopyRight" value="版权所有 上海睿智信息技术有限公司 ©2000-2005 "/>
    <property name="RootPath" value="/"/>
  </object>
  <!--  Web 主页面 -->
  <object id="HomePageResult" type="Spring.Web.Support.Result, Spring.Web">
    <property name="TargetPage" value="~/Default.aspx"/>
    <property name="Mode" value="Redirect"/>
  </object>

  <!-- Admin Web 主页面 -->
  <object id="AdminHomeResult" type="Spring.Web.Support.Result, Spring.Web">
    <property name="TargetPage" value="~/SystemAdmin/fsDefault.aspx"/>
    <property name="Mode" value="Redirect"/>
  </object>

  <!-- Login 主页面 -->
  <object id="LoginResult" type="Spring.Web.Support.Result, Spring.Web">
    <property name="TargetPage" value="~/SystemAdmin/fsLogin.aspx"/>
    <property name="Mode" value="Redirect"/>
  </object>

  <!-- NoAuth 主页面 Transfer -->
  <object id="NoAuthResult" type="Spring.Web.Support.Result, Spring.Web">
    <property name="TargetPage" value="~/SystemAdmin/fsNoAuth.aspx"/>
    <property name="Mode" value="Redirect"/>
  </object>
  
  <!-- NoAuth 主页面 Transfer -->
  <object id="ErrorResult" type="Spring.Web.Support.Result, Spring.Web">
    <property name="TargetPage" value="~/ErrorPage.aspx"/>
    <property name="Mode" value="Redirect"/>
  </object>

  <!-- 所有页面的父页面配置 -->
  <object id="corePage" abstract="true">
    <property name="UseFastSpringIntercept" value="true"/>
    <!-- SelfResults 是FastSpring的配置对父Results的叠加 -->
    <property name="Results">
      <dictionary>
        <entry key="HomePage" value-ref="HomePageResult"/>
        <entry key="AdminHome" value-ref="AdminHomeResult"/>
        <entry key="Login" value-ref="LoginResult"/>
        <entry key="NoAuth" value-ref="NoAuthResult"/>
        <entry key="Error" value-ref="ErrorResult"/>
      </dictionary>
    </property>
    <property name="SoftInformation" ref="SoftInformation" />
    <!--<property name="RoleModuleManager" ref="RoleModuleManager" />-->
    <property name="TempPath" value="Logs\UploadTemp"/>
  </object>

  <!-- 后台管理的父页面配置 -->
  <object id="adminPage" abstract="true" parent="corePage" >
    <property name="CssRoot" value="~/Html/CSS"/>
    <property name="ImagesRoot" value="~/Html/Images/Admin"/>
    <property name="ScriptsRoot" value="~/Html/Scripts/Admin" />
    <!--<property name="PageModule" value="CommSysAdmin"/>-->
    <!--<property name="Interceptor" ref="UserAuthInterceptor" />-->
    <property name="Interceptors">
      <list>
        <ref object="UserAuthInterceptor"/>
      </list>
    </property>
  </object>

  <object id="adminPageM" abstract="true" parent="adminPage" >
    <property name="MasterPageFile" value="~/FSMasterPageAdmin.master"/>
  </object>

  <!-- Web的父页面配置 -->
  <object id="webPage" abstract="true" parent="corePage" >
    <property name="CssRoot" value="~/Html/CSS"/>
    <property name="ImagesRoot" value="~/Html/Images/Web"/>
    <property name="ScriptsRoot" value="~/Html/Scripts/Web" />
  </object>

  <object id="basePage" abstract="true" parent="webPage">
    <property name="MasterPageFile" value="~/FSMasterPage.master"/>
    <!-- Results 是Spring的配置 -->
    <!--<property name="Results">
      <dictionary>
        <entry key="HomePage" value-ref="HomePageResult"/>
        -->
    <!--entry key="HomePage" value="redirect:UserRegistered.aspx?status=Registration Successful,user=aaaaa"/-->
    <!--
      </dictionary>
    </property>-->
  </object>

</objects>